module.exports = {
    publicPath: "./",
    assetsDir: './assets',
    productionSourceMap: false,
    pluginOptions: {
        electronBuilder: {
            nodeIntegration: true,
            builderOptions: {
                "appId": "com.example.app",
                "copyright": "Copyright © 2020",
                productName: 'test',
                "win": {
                    "icon": "./public/icon/icon.ico",
                    "target": [
                        {
                            "target": "nsis",
                            "arch": [
                                "x64",
                                "ia32"
                            ]
                        }
                    ]
                },
                extraResources: {
                    from: 'assets/',
                    to: './assets'
                },
                nsis: {
                    oneClick: false,
                    allowElevation: true,
                    allowToChangeInstallationDirectory: true,
                    installerIcon: './public/icon/icon.ico',
                    uninstallerIcon: './public/icon/icon.ico',
                    installerHeaderIcon: './public/icon/icon.ico',
                    createDesktopShortcut: true,
                    createStartMenuShortcut: true
                }
            }
        },

    }
}